package org.yly.game.rpggame.domain.model.player;

import java.util.Date;

import org.yly.game.rpggame.domain.model.DomainEvent;
import org.yly.game.rpggame.domain.model.goods.Goods;

public class PlayerGoodsAdd implements DomainEvent {

    private int eventVersion;
    private Date occurredOn;
    private String goodsId;
    
    public PlayerGoodsAdd(String goodsId) {

        this.eventVersion = 1;
        this.occurredOn = new Date();
        this.goodsId = goodsId;
    }
	
	@Override
	public int eventVersion() {
		return eventVersion;
	}

	@Override
	public Date occurredOn() {
		return occurredOn;
	}

	public String getGoodsId() {
		return goodsId;
	}

}
